
package com.market.service;

import java.util.List;

import com.market.bean.Product;
import com.market.bean.Supplier;

public interface IProductService extends IBaseService
{

    public abstract Product findById(long id);

    public abstract Product findById(Class cla, long id);

    public abstract void delete(long id);

    public abstract List getNewList(String category, int max);

    public abstract List getHotList(String category, int max);

    public abstract List getDiscountList(int start, int max);

    public abstract List findBySupplier(long supplierid, int start, int max);

    public abstract int getCountBySupplier(long supplierid);

    public abstract List findSPPro(float price, String category);

    public abstract List findSSPro(Supplier sup);

    public abstract List findSTPro(String type, String category);

    public abstract List getProduct(Class cla, int start, int max);

    public abstract int getCountByDiscount();

    public abstract int getCount(Class cla);

    public abstract List findByForm(String category,String type,String name,String parameter,String orderBy, int start, int max);

    public abstract int getCountByForm(String category,String type,String name,String parameter,String orderBy);
}
